package com.yonyou.cyxdms.sysAuth.service.utill;

import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * <p>Title: DateUtils</p>
 * <p>Description:日期工具类 </p>
 *
 * @author luzizhi
 */
@Component
public class DateUtils {

	/**
	 * 获得指定日期格式：如20180901
	 */
	public static String getYYYYMMdd() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
		return sdf.format(Calendar.getInstance().getTime());
	}
}
